package cn.angis.db.config;

import com.zaxxer.hikari.HikariDataSource;
import org.noear.solon.Solon;
import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;
import org.noear.solon.vault.VaultUtils;
import org.noear.solon.vault.annotation.VaultInject;

import javax.sql.DataSource;


@Configuration
public class Config {

    @Bean
    public DataSource db1(@VaultInject("${database.db1}") HikariDataSource dataSource) {
        return dataSource;
    }

//    @Db
//    SQLManager sqlManager;
//
//
//    @Init
//    public void init(){
////        SQLManagerBuilder builder = sqlManager.getMetaDataManager()
//    }
}




